package com.isias.system.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.isias.model.system.SysOperLog;
import com.isias.model.vo.SysOperLogQueryVo;
import com.isias.system.mapper.OperLogMapper;
import com.isias.system.service.Operlogservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = Exception.class)
public class OperLogserviceImpl implements Operlogservice {
    @Autowired
    OperLogMapper operLogMapper;

    @Override
    public void saveSysLog(SysOperLog sysOperLog) {
        operLogMapper.insert(sysOperLog);
    }

    @Override
    public IPage<SysOperLog> selectPage(Page<SysOperLog> pageParam, SysOperLogQueryVo sysOperLogQueryVo) {
        return operLogMapper.selectPage(pageParam, sysOperLogQueryVo);
    }


    @Override
    public SysOperLog getById(Long id) {
        return operLogMapper.selectById(id);
    }
}
